import request from '@/utils/request.js'

export function getCodeApi(params) {
    return request({
        // closeLoading: true,
        // closeInterceptors: true,
        url: "/email", //如果是绝对路径就不会在使用配置里的url
        method: "get",
        params: params,

    });
}

export function registerApi(params) {
    return request({
        // closeLoading: true,
        // closeInterceptors: true,
        url: "/register", //如果是绝对路径就不会在使用配置里的url
        method: "post",
        data: params,

    });
}